﻿<sdk:Page 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
  xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
  xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
  xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
  xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
  x:Class="BuildARoute.Views.Home"
  mc:Ignorable="d"
  Style="{StaticResource PageStyle}">
	
    <sdk:Page.Resources>
        <CollectionViewSource x:Key="tourCollectionViewSource"/>
    </sdk:Page.Resources>
    
    <toolkit:BusyIndicator IsBusy="{Binding IsBusyIndicatorOn}">
        
        <Grid x:Name="LayoutRoot">
        

	        <StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}" Width="640">

	        <TextBlock x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" 
						        Text="Welcome!"/>
		  
	        <TextBlock x:Name="ContentText" Style="{StaticResource ContentTextStyle}" 
						        Text="Welcome to the Veni Vidi website. Here you can author touristic routes that will be available in every mobile device running the Tour Guide App." TextWrapping="Wrap"/>
			        <TextBlock x:Name="TourListHeaderText" Style="{StaticResource HeaderTextStyle}"
					        Text="Recent additions to our catalogue"/>
	        </StackPanel>
        
	        <Canvas Margin="130,152,155,91">
		        <ListBox x:Name="tourListBox" ItemTemplate="{StaticResource tourDataTemplate}"
                            DataContext="{StaticResource tourCollectionViewSource}" 
                            ItemsSource="{Binding}" Height="451" Width="464" />
		        <Button x:Name="viewRouteButton"  Height="34" Width="40" Canvas.Left="461"
                        Template="{StaticResource redCircleButtonControlTemplate}" Content=">"
                        Click="viewRouteButton_Click" ToolTipService.ToolTip="View route details" />
	        </Canvas>
        
            <!--</ScrollViewer>-->
        </Grid>
    </toolkit:BusyIndicator>
</sdk:Page>